<?php
    /**
     * 定时清除服务器缓存
     * Created by PhpStorm.
     * User: zgh
     * Date: 2021-08-02
     * Time: 14:04
     */

    namespace app\common\command;


    use app\common\service\SystemService;
    use think\console\Command;
    use think\console\Input;
    use think\console\Output;

    class ClearCacheCommand extends Command
    {
        protected function configure()
        {
            $this->setName('clear_cache');
        }


        protected function execute(Input $input, Output $output)
        {
            SystemService::clearCache();
            $output->writeln("success");
        }

    }